var Postinfo = {
    element: document.getElementById( 'baboo' ),
    SetPosition: function( type ) {
        if ( type != 'absolute' && type != 'relative' ) {
            // wrong type
            return;
        }
        if ( this.element.style.position == type ) {
            // this.element has already this type of position
            // nothing left to do
            return;
        }
        switch ( type ) {
            case 'relative':
                alert( 'relativity' );
                this.element.style.bottom = '';
                this.element.style.position = 'relative';
                this.element.style.top = '40px';
                this.element.style.marginBottom = '10px';
                break;
            case 'absolute':
                alert( 'absoluting' );
                this.element.style.top = '';
                this.element.style.marginBottom = '';
                this.element.style.position = 'absolute';
                this.element.style.bottom = '10px';
                break;
            default:
                break;
        }
    }
}
